package com.resou.reader.data.tinder.tinder;

import android.os.Parcel;
import android.os.Parcelable;

public class SlideBean implements Parcelable {

    /**
     * chapterId : 27493837551999484
     * chapterName : 第一章 你的名字叫钢索
     * novelName : 我的名字叫钢索
     * content : mtySRjO19vZYiLm8mWEXaYCWImA5ZYn6z6XG7Mb8gK8auQAoTqOWhNhmdD6R
     * bookId : 10000064403000003yw
     */
    private String bookId;
    private String chapterId;
    private String chapterName;
    private String novelName;
    private String content;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(chapterId); // 写出 chapterId
        dest.writeString(chapterName); // 写出 chapterName
        dest.writeString(novelName); // 写出 novelName
        dest.writeString(content); // 写出 content
        dest.writeString(bookId); // 写出 bookId
    }

    public static final Creator<SlideBean> CREATOR = new
            Creator<SlideBean>() {
                @Override
                public SlideBean createFromParcel(Parcel source) {
                    SlideBean slideBean = new SlideBean();
                    slideBean.chapterId = source.readString();
                    slideBean.chapterName = source.readString();
                    slideBean.novelName = source.readString();
                    slideBean.content = source.readString();
                    slideBean.bookId = source.readString();
                    return slideBean;
                }

                @Override
                public SlideBean[] newArray(int size) {
                    return new SlideBean[size];
                }
            };

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public String getNovelName() {
        return novelName;
    }

    public void setNovelName(String novelName) {
        this.novelName = novelName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

}
